/**
 * 生成一个不重复的ID，用在页面中出现多个重复的echarts图标，防止id重复，只能描绘第一个
 */
let randomId = function GenNonDuplicateID(randomLength){
    const crypto = window.crypto || window.msCrypto;
    const array = new Uint32Array(1);
    const random = crypto.getRandomValues(array)[0];
    return Number(String(random).substr(0, randomLength) + Date.now()).toString(36)
}
export default randomId;